<?php
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2020/2/24
 * Time: 2:19 PM
 */

namespace App\Entities;

class OrderTraceEntity extends ABaseEntity
{
    public function __construct(OrderTraceModel $model)
    {
        $this->model = $model;
    }

    /**
     * @return int
     */
    public function getOrderId()
    {
        return (int)$this->model->order_id;
    }

    /**
     * @param int $value
     */
    public function setOrderId(int $value)
    {
        $this->model->order_id = $value;
    }

    /**
     * @return int
     */
    public function getOrderState()
    {
        return (int)$this->model->order_state;
    }

    /**
     * @param int $state
     */
    public function setOrderState(int $state)
    {
        $this->model->order_state = $state;
    }

    /**
     * @return string
     */
    public function getOrderStateDesc()
    {
        return (string)$this->model->order_state_desc;
    }

    /**
     * @param string $desc
     */
    public function setOrderStateDesc(string $desc)
    {
        $this->model->order_state_desc = $desc;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return (string)$this->model->created_at;
    }
}
